﻿ /*------------------------------------------------------------------
-- COPYRIGHT (C) 2010-2012  Atom
-- ALL RIGHTS RESERVED.
-- 兆尹科技
-- CREATE DATE: 2010/07/12
-- CREATE MAN:	姜新军
-- 检测不合法的实体数据，返回信息
-- MODIFY HISTORY:
-- MODIFY DATE:
-- MODIFY MAN:	
-- MODIFY DESC:
-- MODIFY DATE:
-- MODIFY MAN:	
-- MODIFY DESC:
---------------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Text;

namespace Atom.Entity
{
    /// <summary>
    /// 检测不合法的实体数据，返回信息
    /// </summary>
    public class CheckInvalidValue
    {
        /// <summary>
        /// 相关实体的类型
        /// </summary>
        /// <remarks>如果跟实体无关，此值为null</remarks>
        public Type EntityType { get; set; }

        /// <summary>
        /// 相关实体的属性名称
        /// </summary>
        /// <remarks>如果跟实体无关，此值为null</remarks>
        public string PropertyName { get; set; }

        /// <summary>
        /// 实体的值
        /// </summary>
        /// <remarks>即传入的不合法的值</remarks>
        public object Value { get; set; }

        /// <summary>
        /// 对应的数据库字段结构信息
        /// </summary>
        public DatabaseColumnStruct DBColumnStruct { get; set; }

        /// <summary>
        /// 错误的信息
        /// </summary>
        public string InvalidMessage { get; set; }
    }
}
